package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRG_T")
public class MmrgT extends PO<MmrgT> {

    private static final long serialVersionUID = 1L;

    private String MMRGENT;

    @TableId(value = "MMRGDOCNO", type = IdType.INPUT)
    private String MMRGDOCNO;

    private BigDecimal MMRGSEQ;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRGDOCDATE;

    private String MMRG001;

    private BigDecimal MMRG002;
    private String MMRG003;

    private String MMRG004;
    private String MMRG005;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRG006;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRG007;
    private String MMRG008;
    private String MMRG009;

    private String MMRG010;
    private String MMRG011;
    private String MMRG012;
    private String MMRG013;
    private String MMRG100;
    private String MMRG101;
    private String MMRG102;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime MMRG103;
    private BigDecimal MMRG104;

    private String MMRGACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRGUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRGGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRGMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRGTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRGDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRGORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRGORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRGENT;
    }

}
